google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2024-02-28',388334,140,null,null,null], ['2024-02-29',388452,140,53,null,null], ['2024-03-01',388556,102,105,null,null], ['2024-03-02',388782,91,128,null,null], ['2024-03-03',388929,85,154,null,null], ['2024-03-04',389092,84,169,null,null], ['2024-03-05',389200,85,185,null,null], ['2024-03-06',389200,78,190,null,null], ['2024-03-07',389320,76,90,null,null], ['2024-03-08',389436,78,151,null,null], ['2024-03-09',389520,83,null,null,null], ['2024-03-10',389623,94,null,null,null], ['2024-03-11',389765,96,null,null,null], ['2024-03-12',389880,96,null,null,null], ['2024-03-13',389966,109,null,null,null], ['2024-03-14',390064,126,null,null,null], ['2024-03-15',390140,162,null,null,null], ['2024-03-16',390218,160,null,null,null], ['2024-03-17',390290,null,null,null,null], ['2024-03-18',390405,null,null,null,null], ['2024-03-19',390603,null,null,null,null], ['2024-03-20',390603,null,189,null,null], ['2024-03-21',390692,null,null,null,null], ['2024-03-22',390799,null,null,null,null], ['2024-03-23',390862,null,null,null,null], ['2024-03-24',391052,165,null,null,null], ['2024-03-25',391150,165,null,null,null], ['2024-03-26',391150,165,null,null,null], ['2024-03-27',391150,152,null,null,null], ['2024-03-28',391354,152,41,null,null], ['2024-03-29',391524,118,72,null,null], ['2024-03-30',391524,73,112,null,null], ['2024-03-31',391524,69,144,null,null], ['2024-04-01',391524,69,193,null,null], ['2024-04-02',391524,69,166,null,null], ['2024-04-03',391524,70,165,null,null], ['2024-04-04',392825,72,119,null,null], ['2024-04-05',392957,77,192,null,null], ['2024-04-06',393060,77,null,null,null], ['2024-04-07',393139,77,null,null,null], ['2024-04-08',393368,null,null,null,null], ['2024-04-09',393450,95,null,null,null], ['2024-04-10',393541,110,null,null,null], ['2024-04-11',393606,124,81,null,null], ['2024-04-12',393705,133,116,null,null], ['2024-04-13',393705,133,157,null,null], ['2024-04-14',393775,101,null,null,null], ['2024-04-15',394022,101,null,null,null], ['2024-04-16',394022,99,null,null,null], ['2024-04-17',394179,102,null,null,null], ['2024-04-18',394262,102,182,null,null], ['2024-04-19',394262,116,null,null,null], ['2024-04-20',394339,116,null,null,null], ['2024-04-21',394408,120,null,null,null], ['2024-04-22',394567,151,null,null,null], ['2024-04-23',394728,157,null,null,null], ['2024-04-24',394875,158,null,null,null], ['2024-04-25',395048,155,68,null,null], ['2024-04-26',395304,110,100,null,null], ['2024-04-27',395559,97,161,null,null], ['2024-04-28',395694,96,198,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:200}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });